package server;

import java.rmi.registry.LocateRegistry;

import javax.naming.Context;
import javax.naming.InitialContext;

import common.exchange;

public class exchangeserver {
	public static void main(String[] args) throws Exception{
		LocateRegistry.createRegistry(1099);
		
		Context ctx=new InitialContext();
		exchange ex=new exchangeimpl();
		String url="rmi://localhost:1099/ty";
		ctx.bind(url, ex);
		System.out.println("Object in bouned registry....");
	}
}
